// initial state
const state = {
  city: '', // 城市
  agency: '', //旅行社
  hotel: '' , //酒店
  buy:'' , //自定义线路提交数据
  buyshow:'' , //自定义线路显示
};
// mutations
const mutations = {
  // 计算购物车总量和总价
  savecity (state, city) {
    state.city = city
  },
  saveagency (state, agency) {
    state.agency = agency
  },
  savehotel (state, hotel) {
    state.hotel = hotel
  },
  savebuy (state, buy) {
    state.buy = buy
  },
  savebuyshow (state, buyshow) {
    state.buyshow = buyshow
  },
  clearbuy(state){
    state.buy='';
    state.buyshow=''
  }

}

export default {
  state,
  mutations
}
